<?php 

	$arr = array("name"=>"zhangsan", "age"=>18, "sex"=>"男");

	//串行化
	$str = json_encode($arr);
	

	//反串行化
	$dstr = json_decode($str, true);

	var_dump($str);

	echo "<br>";

	var_dump($dstr);




 ?>